/*
 * Copyright (c) 2006 HutCabb Consulting Pte Ltd,
 * All Rights Reserved.
 * This work contains trade secrets and confidential material of
 * HutCabb Consulting Pte Ltd.
 *
 * Warning: Any unauthorised dissemination, disclosure or use of the content
 * in whole or in part without the explicit consent of HutCabb Consulting
 * Pte Ltd will be deemed as intellectual property infindgement and the
 * offender will be subjected to legal actions.
 *
 * Project  : CMC
 * Name   : CryptoException.java
 *
 * Modification History:
 * Date - Jan 26, 2006
 * Ver.No - 1.0
 * Modified by - koo
 * Brief Description of Modification - Creation
 */
package com.virtium.vpm.exception;

public class CryptoException extends Exception {
 
	static final long serialVersionUID = 3191221457385804660L;

    public final static String ALGORITHM_EXP = "One-hash algorithm cannot be used.";

    /**
     * <p>
     * Constructs a CryptoException instance with description string to the exception
     *
     * @param str								description of the exception
     */
    public CryptoException(String str) {
        super("cmc.exception.CryptoException: " + str);
    }

    /**
     * <p>
     * Constructs a CryptoException instance with description string and an
     * Exception class encapsulated within
     *
     * @param str								description of the exception
     * @param ex								Exception instance
     */
    public CryptoException(String str, Exception ex) {
        super("cmc.exception.CryptoException: " + str, ex);
    }

}
